<template>
    <div class="test">
        <h1>test</h1>
        <el-button @click="testAjaxClick">test</el-button>
    </div>
</template>

<script type="text/ecmascript-6">
    /**
     * @author 白雨浓
     * @date 2018/10/25 21:19
     *
     *
     **/
    export default {
        name: 'Test',
        data() {
            return {}
        },
        mounted() {
            this.$nextTick(() => {

            })
        },
        methods: {
            async testAjaxClick() {
                const res = await this.$$get('/valid/test');
                alert(JSON.stringify(res));
            },
        }
    }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
    .test {
    }
</style>
